<template>
  <el-scrollbar
      class="layout-aside-scroll"
  >
    <slot></slot>
  </el-scrollbar>
</template>

<script setup lang="ts">

</script>

<style scoped lang="scss">
.layout-aside-scroll {
  max-height: calc(100vh - 60px);
}

//:deep(.el-scrollbar__wrap) {
//  overflow-x: hidden;
//  overflow-y: hidden;
//}
//
//:deep(.el-scrollbar__view) {
//  overflow-x: hidden;
//  overflow-y: hidden;
//}

:deep(.el-scrollbar__bar) {
  display: none;
  background-color: #8ae619;//这里我设置成了透明色,可以根据需求添加自己想要的颜色
  //overflow: hidden;
}
//:deep(.el-scrollbar__bar:hover) {
//  display: none;
//}

</style>